

<link href="../css/sj.css" type="text/css" rel="stylesheet">


<?
include("../config/config.php");

$id=$_POST[id];
$enable=$_POST[enable];
$confirm=$_POST[confirm];
$published_at=$_POST[published_at];
$title=$_POST[title];
$image=$_POST[image];
$type=$_POST[type];
$author=$_POST[author];
$source=$_POST[source];
$source_url	=$_POST[source_url];
$content=addslashes($_POST[content]);
$likes=$_POST[likes];
$views	=$_POST[views];
$comments=$_POST[comments];

$result=mysqli_query($mysqli,"update  z_rcmd_article set 
	enable='$enable',
	confirm='$confirm',
	published_at='$published_at',
	title='$title',
	image='$image',
	type='$type',
	author='$author',
	source='$source',
	source_url='$source_url',
	content='$content',
	likes='$likes',
	views='$views',
	comments='$comments'
	where id=$id");

if($result==true){
	echo "<script>	alert(\"修改成功\");	</script>"; 
    header("location:select.php");
}

else{
	//echo "<script>	alert(\"修改失败\");	</script>"; 
	echo mysqli_error($result);
	echo mysqli_error($mysqli);

}



?>



